package tt.com.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 墓园分类表（骨灰楼-骨灰室分级使用）
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yx_cemetery_tomb_node")
public class TombNode {
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 节点名称
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 父节点id
     */
    @TableField(value = "parent_id")
    private String parentId;

    /**
     * 种类 (0 :墓地 1 : 骨灰楼2：壁穴 3：草坪 4：树葬)
     */
    @TableField(value = "species")
    private Integer species;

    /**
     * 节点层级
     */
    @TableField(value = "`floor`")
    private Integer floor;

    /**
     * 节点标识(0 园 1 区 2 坡 3 堂 4 排 5 室 6 楼 7 面 8 侧 9 壁)
     */
    @TableField(value = "node_tag")
    private Integer nodeTag;

    /**
     * 编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 开放状态 (0 正常出售 1 暂停出售 2 已售空   )
     */
    @TableField(value = "open_status")
    private Integer openStatus;

    /**
     * 图片地址
     */
    @TableField(value = "img_url")
    private String imgUrl;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private String createUserId;

    /**
     * 最后修改时间
     */
    @TableField(value = "last_update_time")
    private Date lastUpdateTime;

    /**
     * 最后修改人
     */
    @TableField(value = "last_update_user_id")
    private String lastUpdateUserId;

    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;

    /**
     * 删除人
     */
    @TableField(value = "delete_user_id")
    private String deleteUserId;

    /**
     * (0删除 1正常)
     */
    @TableField(value = "data_status")
    private Integer dataStatus;

    /**
     * 机构id
     */
    @TableField(value = "organ_id")
    private String organId;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_SPECIES = "species";

    public static final String COL_FLOOR = "floor";

    public static final String COL_NODE_TAG = "node_tag";

    public static final String COL_CODE = "code";

    public static final String COL_OPEN_STATUS = "open_status";

    public static final String COL_IMG_URL = "img_url";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CREATE_USER_ID = "create_user_id";

    public static final String COL_LAST_UPDATE_TIME = "last_update_time";

    public static final String COL_LAST_UPDATE_USER_ID = "last_update_user_id";

    public static final String COL_DELETE_TIME = "delete_time";

    public static final String COL_DELETE_USER_ID = "delete_user_id";

    public static final String COL_DATA_STATUS = "data_status";

    public static final String COL_ORGAN_ID = "organ_id";
}